package edu.mis.core.conf;

import com.jfinal.config.Routes;


import edu.mis.modules.blog.BlogController;
import edu.mis.modules.cart.CartController;
import edu.mis.modules.customer.CustomerController;
import edu.mis.modules.index.IndexController;
import edu.mis.modules.orderDetail.OrderDetailController;
import edu.mis.modules.orderDetailCustomer.OrderDetailCustomerController;
import edu.mis.modules.orderDetailRoom.OrderDetailRoomController;
import edu.mis.modules.orderList.OrderListController;
import edu.mis.modules.room.RoomController;
import edu.mis.modules.roomType.RoomTypeController;
import edu.mis.modules.user.UserController;


/**
 * 后台路由
 *
 */
public class FrontRoutes extends Routes{

    @Override
    public void config() {

        add("/user", UserController.class,"/admin/user");
        add("/customer", CustomerController.class,"/admin/customer");
        add("/", IndexController.class, "/admin");	// 第三个参数为该Controller的视图存放路径，省略则与第一个参数相同
        add("/blog", BlogController.class,"/admin/blog");
        add("/orderList", OrderListController.class, "/admin/orderList");
        add("/orderDetail", OrderDetailController.class, "/admin/orderDetail");
        add("/orderDetailCustomer", OrderDetailCustomerController.class, "/admin/orderDetailCustomer");
        add("/orderDetailRoom", OrderDetailRoomController.class, "/admin/orderDetailRoom");
        add("/cart", CartController.class, "/admin/cart");
    }



}
